<template>
	<view class="home">
		<u-navbar :safeAreaInsetTop="true" :placeholder="true" bgColor="rgba(255, 255, 255, 1)"
			:autoBack="true">
			<view class="u-nav-slot" slot="center">
				{{titleData}}
			</view>
		</u-navbar>
		<view class="box_list">
			<view class="box_i" v-for="(i,index) in list" :key="index">
				<view class="b_top">
					{{index+ 1}}号监测区域
				</view>
				<view class="b_bom">
					<view class="text_a">
						土壤温度：
					</view>
					<view class="text_b">
						{{i.data1}} ℃
					</view>
				</view>
				<view class="b_bom">
					<view class="text_a">
						土壤湿度：
					</view>
					<view class="text_b">
						{{i.data2}} %
					</view>
				</view>
				<view class="b_bom">
					<view class="text_a">
						光照度：
					</view>
					<view class="text_b">
						{{i.data3}} Lux
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						data1: '26',
						data2: '28',
						data3: '36'
					},{
						data1: '23',
						data2: '22',
						data3: '38'
					},{
						data1: '24',
						data2: '26',
						data3: '33'
					},{
						data1: '23',
						data2: '25',
						data3: '36'
					},{
						data1: '22',
						data2: '23',
						data3: '37'
					},{
						data1: '23',
						data2: '29',
						data3: '35'
					},{
						data1: '25',
						data2: '29',
						data3: '36'
					},{
						data1: '23',
						data2: '28',
						data3: '34'
					},
				],
				titleData: ''
			}
		},
		onLoad(option) {
			this.titleData = option.nickName
		},
		methods: {

		}
	}
</script>
<style scoped lang="scss">
	.home {

		.box_list {
			padding: 30rpx;
			color: #000000;
			font-size: 50rpx;

			.box_i {
				padding: 20rpx 30rpx;
				margin-bottom: 30rpx;
				text-align: center;
				border-radius: 30rpx;
				background-color: rgba(115, 86, 35, 0.1);

				.b_top {
					font-size: 60rpx;
				}

				.b_bom {
					display: flex;
					justify-content: space-between;
					align-items: center;
					background-color: #ffffff;
					padding: 10rpx;
					border-radius: 20rpx;
					margin: 10rpx;

					.text_a {
						width: 260rpx;
						text-align: justify;
						text-align-last: justify;
						color: #735623;
					}

					.text_b {
						color: #3b7600;
					}
				}
			}
		}
	}
</style>